HID: apple: Add missing scan code event for keys handled by hid-apple
authorVincent Lefevre <vincent@vinc17.net>
Thu, 22 Jul 2021 01:25:44 +0000 (03:25 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 19 Sep 2021 08:49:04 +0000 (09:49 +0100)
commitcfd31017a89274e14b86f8471ccc3713670b8157
tree97cb2f5527ce185edb4faa8c16426674b91c4f95
parent737cb822653eba9edcc107c7e4a2069a40d5fe6f
HID: apple: Add missing scan code event for keys handled by hid-apple

Origin: https://git.kernel.org/linus/3b41fb4094914903fd8e50a13def9e47763dc101
Bug-Debian: https://bugs.debian.org/757356

When an EV_KEY event is generated by hid-apple due to special key
mapping, the usual associated scan code event (EV_MSC) is missing.
This issue can be seen with the evtest utility.

Add the scan code event for these special keys.

BugLink: https://bugs.debian.org/757356
Co-developed-by: Daniel Lin <ephemient@gmail.com>
Signed-off-by: Daniel Lin <ephemient@gmail.com>
Signed-off-by: Vincent Lefevre <vincent@vinc17.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name HID-apple-Add-missing-scan-code-event-for-keys-handl.patch
drivers/hid/hid-apple.c